import {createRouter, createWebHistory, RouteRecordRaw} from 'vue-router'

const routes: Array<RouteRecordRaw> = [
    {
        path: '/',
        name: 'index',
        component: () => import('./views/layout/Layout.vue'),
        redirect: '/dashboard/hello',
        children: [
            {
                path: '/dashboard/hello',
                name: 'hello',
                component: () => import('./views/Hello.vue'),
            },
        ]
    }
]


export const asyncRouterMap = []


const router = createRouter({
    history: createWebHistory(process.env.BASE_URL),
    routes
})

export default router
